<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<head>
</head>
<body>
<ui:composition template="/pages/templates/layout_menu_interno.xhtml">
	<ui:define name="title_page">#{language['application.name']} - Cadastro de Tema</ui:define>
	
	<ui:define name="title">Cadastro de Tema</ui:define>
		
	<ui:define name="list_link">
		<li><a href="#">Home</a></li>
		<li class="active">Cadastro de Tema</li>
	</ui:define>
	
	<ui:define name="content">
		<article>
			<h:form prependId="false" id="form" styleClass="form-horizontal">
				<div class="container">
				<div class="form-group">
					<h:outputText id="message_top" value=" "/>
					<h:message for="message_top" styleClass="form-erro-message"/>
				</div>
				</div>
				
				<div class="form-group">
					<label class="col-sm-2 control-label">Nome*:</label>
					<div class="col-sm-6">
						<h:inputText
							id="nome"
							styleClass="form-control"
							value="#{MBeanManterTema.tema.nome}"
							maxlength="50"
							required="true"
							requiredMessage="Campo obrigatório" validatorMessage="Maximo de 50 caracteres">
							<f:validateLength maximum="50" />
						</h:inputText>
					</div>
					
					<span class="help-block form-erro-message">
						<h:message for="nome"/>
					</span>
				</div>
	
				<br />
				
				<div class="form-group">
				    <div class="col-sm-offset-2 col-sm-8" style="text-align: left;">
						<h:commandButton styleClass="btn btn-two" value="Salvar"
							action="#{MBeanManterTema.actionSalvar}"/>
						<h:commandButton styleClass="btn btn-two" value="Cancelar"
							style="margin-left: 10px;"
							action="#{MBeanManterTema.actionCancelarCadastro}"
							immediate="true"/>
					</div>
				</div>
			</h:form>
		</article>
	</ui:define>
</ui:composition>
</body>
</html>